package com.yuneec.fly.views;

import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.FrameLayout;

import com.yuneec.fly.GlobalParams;

/**
 * Created by jw.gu on 2016/6/21.
 */
public class MapViewContainer extends FrameLayout {
    public MapViewContainer(Context context) {
        this(context, null);
    }

    public MapViewContainer(Context context, AttributeSet attrs) {
        this(context, attrs, 0);
    }

    public MapViewContainer(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        setClickable(true);
    }

    @Override
    public boolean onInterceptTouchEvent(MotionEvent ev) {
        return GlobalParams.videoViewStatus == GlobalParams.ViewStatus.MAX;
    }
}
